package com.microhousekeeper.error;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.TextView;

import com.microhousekeeper.wx.MainActivity;
import com.microhousekeeper.wx.R;

public class WxErrorActivity extends Activity {
	
	private ImageButton imgbtn_error;
	private TextView textView1;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.wx_error);
		
		imgbtn_error = (ImageButton) findViewById(R.id.error_btn_back);
		imgbtn_error.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(WxErrorActivity.this, MainActivity.class);
				startActivity(intent);
			}
		});
		
		textView1 = (TextView) findViewById(R.id.textView1);
		textView1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(WxErrorActivity.this, MainActivity.class);
				startActivity(intent);
			}
		});
	}

}
